import request from '@/utils/request'

// 查询物资出门列表
export function listOaMaterial(query) {
  return request({
    url: '/material/oaMaterial/list',
    method: 'get',
    params: query
  })
}

// 查询物资出门详细
export function getOaMaterial(id) {
  return request({
    url: '/material/oaMaterial/' + id,
    method: 'get'
  })
}

// 保存物资出门
export function saveOaMaterial(data) {
  return request({
    url: '/material/oaMaterial/save',
    method: 'post',
    data: data
  })
}

// 删除物资出门
export function delOaMaterial(id) {
  return request({
    url: '/material/oaMaterial/' + id,
    method: 'delete'
  })
}

// 导出物资出门
export function exportOaMaterial(query) {
  return request({
    url: '/material/oaMaterial/export',
    method: 'get',
    params: query
  })
}
